﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PMSBusiness.Service.Background
{
    public  class WorkTaskSetBase 
    {
        public string Name{get; set;}

        public List<IWorkTask> ListWorkTask = new List<IWorkTask>();

        public WorkTaskSetBase(string name)
        {
            Name = name;
        }

        public virtual void Execute()
        { 

        }

        /// <summary>
        /// 添加一个worktask，返回这个worktask的位置
        /// </summary>
        /// <param name="workTaskBase"></param>
        /// <returns></returns>
        public int Add(IWorkTask workTaskBase)
        {
            ListWorkTask.Add(workTaskBase);
            return ListWorkTask.Count - 1;
        }


    }
}
